<%--
  Created by IntelliJ IDEA.
  User: t430
  Date: 2018/7/27
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>修改</title>
</head>
<body>


<form action="${pageContext.request.contextPath}/newstype/doupdate" method="post">
    <input type="hidden" name="id" value="${newsType.id}" />
    类别名称:<input type="text" value="${newsType.typeName}" name="typeName" /><br/>
    父类别:<select name="parentId">
    <option value="0">==请选择==</option>
    <c:forEach var="item" items="${plist}">
        <option ${item.id==newsType.parentId?"selected":""}  value="${item.id}">${item.typeName}</option>
    </c:forEach>
</select><br/>
    <input type="submit" value="修改" />

</form>

${lab}

</body>
</html>